﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Helpers;
using System.Web.UI.WebControls;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
using Newtonsoft.Json;
using WebApp.Models;

namespace WebApp.Handler
{
    /// <summary>
    /// Summary description for msgHandler
    /// </summary>
    public class msgHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            string body = context.Request.Form[0];
            context.Response.Write(body);
            //if (string.IsNullOrWhiteSpace(body)) context.Response.Write("body获取出错");
            //var res = JsonConvert.DeserializeObject<ReceivedMsg>(body);
            //context.Response.Write("success,msg:"+ res.Content);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}